import re
import json

import requests
from modules.mod_searcher import ModSearcher
from modules.name_normalizer import NameNormalizer
from modules.mod_classifier import ModClassifier
from modules.mod_processor import ModProcessor
def main():
    displayName = "FTB Library"
    mod_file_path =r"C:\Users\suiyi\AppData\Local\pcl\.minecraft\versions\神话：起源\mods\ftb-library-forge-2001.2.10.jar"
    normalizer = NameNormalizer()
    searcher = ModSearcher()
    modclassifier = ModClassifier()
    modprocessor = ModProcessor()
    displayName = displayName.replace("mod", "")
    set = {"fingerprints": ["2217704585"]}
    # print(modclassifier.classify_mod(mod_file_path))
    # print(searcher.search_mod_via_mcmod_api(displayName))
    print(searcher.search_wiki_id(mod_file_path, displayName, None))
if __name__ == "__main__":
    main()